package com.parkingspace.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 物业表
 * </p>
 *
 * @author Gapper
 * @since 2021-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Property implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
      @TableId(value = "property_id", type = IdType.ASSIGN_ID)
      @JsonSerialize(using = ToStringSerializer.class)
    private Long propertyId;

    /**
     * 物业公司名称
     */
    private String propertyName;

    /**
     * 公司详情描述
     */
    private String propertyDetails;

    /**
     * 分成
     */
    private String propertyShare;

    /**
     * 软删除(0:未删除,1:已删除)
     */
    @TableLogic
    @TableField(select = false)
    private Integer propertySoftdel;


}
